<#include "../_sys/layout/layout-content.ftl"/>
<@head title="菜单设置" keywords="关键字" description="内容描述">
</@head>
<@body>
<!-- 菜单列表开始 -->
<div class="row">
	<div class="col-md-4 col-sm-4 col-xs-12">
		<div class="x_panel" style="margin-bottom:0px">
			<div class="x_title">
				<div class="col-md-12 col-sm-12 col-xs-12">
					<h2>菜单列表</h2>
				</div>
				<div class="clearfix"></div>
			</div>
			<div class="x_content">
				<div class="col-md-12 col-sm-12 col-xs-12">
					<div class="col-md-12 col-sm-12 col-xs-12" style="width:100%">
						<select id="sel_plat" name="plat" class="form-control" title="请选择平台" onChange="reLoadMenuTree()">
						</select>
					</div>
					<!-- 菜单树  start-->
					<div class="zTreeDemoBackground left" style="overflow-y:auto;width:100%;" id="x_content_01">
					<h4 style="padding-left:3%" id="loding_info">正在加载中...</h4>
						<ul id="menuTree" class="ztree checkbox_false_full"></ul>
					</div>
					<!-- 菜单树  end-->
				</div>
			</div>
		</div>
	</div>
	<!-- 菜单列表结束 -->
	
	<!-- 菜单设置开始 -->
	<div class="col-md-8 col-sm-8 col-xs-12">
		<div class="row">
			<div class="col-md-12 col-sm-12 col-xs-12">
				<div class="x_panel"  id="x_content_02">
					<div class="x_title">
						<h2 id="addOrModify_content_title">菜单设置</h2>
						<div class="clearfix"></div>
					</div>
					<div class="x_content" id="addOrModify_content_info">
						<h4 id="content_info">请选择左侧需要操作的菜单</h4>
					</div>
					<div class="x_content" id="addOrModify_content_btn" style="display:none">
						<div class="col-md-12 col-sm-12 col-xs-12">
						<@AuthBtn>
							<button type="button" class="btn btn-primary" id="btn_100100101101" token="100100101101">新增</button>
							<button type="button" class="btn btn-success" id="btn_100100101102" token="100100101102">修改</button>
							<button type="button" class="btn btn-danger"  id="btn_100100101103" token="100100101103">删除</button>
						</@AuthBtn>	
						</div>
					</div>
					<div class="x_content" id="addOrModify_content" style="display:none">
						<form id="frm_addOrModify" class="form-horizontal form-label-left input_mask">
							<input type="hidden" id="addOrModify_type">
							<div class="form-group">
								<label class="control-label col-md-3 col-sm-3 col-xs-12" id='menuName_label'></label>
								<div class="col-md-7 col-sm-7 col-xs-12">
									<input id="menuName_info" type="text" class="form-control" readonly="readonly" value="">
								</div>
							</div>
							<div class="form-group">
								<label class="control-label col-md-3 col-sm-3 col-xs-12" id="name_label">菜单名称</label>
								<div class="col-md-7 col-sm-7 col-xs-12">
									<input id="txt_name" name="name" type="text" class="form-control">
								</div>
							</div>
							<div class="form-group">
								<label class="control-label col-md-3 col-sm-3 col-xs-12">菜单Title</label>
								<div class="col-md-7 col-sm-7 col-xs-12">
									<input id="txt_hit"  name="hit" type="text" class="form-control">
								</div>
							</div>
							<div class="form-group">
								<label class="control-label col-md-3 col-sm-3 col-xs-12">菜单链接</label>
								<div class="col-md-7 col-sm-7 col-xs-12">
									<input id="txt_url"  name="url" type="text" class="form-control" placeholder="例:/example/exam">
								</div>
							</div>
							<div class="form-group">
								<label class="control-label col-md-3 col-sm-3 col-xs-12">小图标</label>
								<div class="col-md-7 col-sm-7 col-xs-12">
									<input id="txt_icoUrl" name="icoUrl" type="text" class="form-control">
								</div>
							</div>
							<div class="form-group">
								<label class="control-label col-md-3 col-sm-3 col-xs-12">打开方式</label>
								<div class="col-md-7 col-sm-7 col-xs-12">
									<select id="sel_target" name="target" class="form-control">
										<option value="_blank">_blank</option>
										<option value="_self">_self</option>
										<option value="_parent">_parent</option>
										<option value="_top">_top</option>
										<option value="iframe">iframe</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="control-label col-md-3 col-sm-3 col-xs-12">是否启用</label>
								<div class="col-md-7 col-sm-7 col-xs-12">
									<select id="sel_enable" name="enable" class="form-control">
										<option value="1">启用</option>
										<option value="2">不启用</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="control-label col-md-3 col-sm-3 col-xs-12">是否显示</label>
								<div class="col-md-7 col-sm-7 col-xs-12">
									<select id="sel_blDisplay" name="blDisplay" class="form-control">
										<option value="1">显示</option>
										<option value="2">不显示</option>
									</select>
								</div>
							</div>
							<div class="ln_solid"></div>
							<div class="form-group">
								<div class="col-md-9 col-sm-9 col-xs-12 col-md-offset-5">
									<button type="button" class="btn btn-default btn-sm" id="btn_cancle">取消</button>
									<button type="button" class="btn btn-primary btn-sm" id="btn_save">保存</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- 菜单设置结束 --> 
<!-- 新增弹出层  star-->
<div class="modal fade" id="bs-100100101101-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false">
	<div class="modal-dialog modal-lg">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
				<h4 class="modal-title" id="myModalLabel">可添加的平台	</h4>
			</div>
			<div class="modal-body">
				
				<div class="row">
					<div class="col-md-12 col-sm-12 col-xs-12" >
						<div class="x_panel" id="x_content_02" >
							<div class="x_title">
								<h2>请选择您要想要新增的平台</h2>
								<div class="clearfix"></div>
							</div>
							<div class="x_content">
								<div class="x_content bs-example-popovers" style="overflow-y:auto;" id="x_content_04">正在加载中...</div>
							</div>
						</div>
					</div>
				</div>
				
			</div>
		</div>
	</div>
</div>
<!-- end -->
</@body>
<@script>
<script type="text/javascript" src="${cxt}/controller/system/100100101.js"></script>
<script type="text/javascript">
	setTimeout(function(){
		$("#x_content_01").css("height",$('#ifrmContent', parent.document).height()-130);
	},50)
</script>
</@script>